<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>想即做thinkTodo任务清单</title>

<!-- 指定图标 -->
    <link rel="shortcut icon" href="/favicon.ico" />
    <link rel="bookmark" href="/favicon.ico" />
    <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">

    <link href="/libs/font-awesome-4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="/_assets/css/fonts.css">

<!--
本地 Bootstrap 核心 CSS 文件
本地jQuery文件。务必在bootstrap.min.js 之前引入
本地 Bootstrap 核心 JavaScript 文件 
-->

    <link rel="stylesheet" href="/libs/bootstrap-3.3.5-dist/css/bootstrap.min.css">
    <script src='/libs/fullcalendar-1.6.1/jquery/jquery-1.9.1.min.js'></script>
    <script src="/libs/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>

<!--
 <link rel="stylesheet" href="/libs/jquery-ui/themes/base/jquery.ui.all.css">     
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
-->
    <!-- Add IntroJs styles -->
    <link href="/libs/introjs/introjs.css" rel="stylesheet">
    
    <link rel="stylesheet" href="/_assets/css/base.css">
    <link rel="stylesheet" href="/_assets/css/home_with_bs.css">
    <link rel="stylesheet" href="/_assets/css/task_with_bs.css">
    <link rel="stylesheet" href="/_assets/css/style_tags.css">
    <link rel="stylesheet" href="/_assets/css/for_auth.css">
<!--    在调试时用，可以即时刷新css,只对代码之前的css有用
    <script type="text/javascript" src="/libs/cssrefresh.js"></script>
 --> 
    
    <style>

    </style>

    <link href='/libs/fullcalendar-1.6.1/fullcalendar/fullcalendar.css' rel='stylesheet' />
    <link href='/libs/fullcalendar-1.6.1/fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />

    <script src="/libs/layer/layer.js"></script>
    <!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
    <script src="/libs/vue/vue.js"></script>

    <link  href='/libs/rangeslider.js-2.3.0/ion.rangeSlider.css' rel='stylesheet' />


    <script type="text/javascript">
		var now= new Date();
		console.log(now.toDateString()+'--'+now.toTimeString());
		
        var node_type_icon = new Object();
        node_type_icon["S"] = "fa-search";
        node_type_icon["undefined"] = "";
        domain = "www.thinktodo.cn";

        var workarea = '';
        var teamid; //当前团队任务的团队号

        var drag_type = "task";//拖放类型
        var calendar_show = true;
        var current_edit_taskid;
        var current_opt_task_id;//当前操作的task数据ID
        var current_opt_dom_id;//当前操作task的dom ID
        var unique_dom_id = 1000; //用于生成唯一dom id的起始序号
        var anchor_taskid;//当前锚定的ID
        

//这段内嵌php代码，不能使用Beautify
//通过php向js传递变量，但teamId要存在
        <?php  if(isset($teamId)){ ?>
                var abc=<?php $teamId ?>;
        <?php  } ?>

        $(document).ready(function() {
            //取得团队参数
            teamid = $("#parm").attr("data-teamid");
            console.log("teamid=" + teamid);

            //一键取得所有任务并挂装（扣除已存档任务）
            //	refresh_all_and_append3();//先挂装顶级任务，在打开具体任务时再挂装
            refresh_all_task_and_append(); //用数组处理，生成全部HTML后，挂装
            
//            创建当前任务视图
//            create_recent_view();
            //	console.log($("#parm").attr('data-rootTaskId'));

            // 焦点停留在输入框
            $("#input_simple_task_add").focus();

            $("#btn_login").click(function(){
                $.post("http://tt2.pc.com:9096/index.php/auth/login",
                {
                    login:$("#login").val(),
                    password:$("#password").val()
                },
                function(data,status){
                    // console.log("Data: " + data + "nStatus: " + status);
                    refresh_all_task_and_append();
                    $("#input_simple_task_add").focus();
                    $('#myModal').modal('hide');
                });
            });
        }); //end of $(document).ready事件
    </script>
</head>

<body>

    <div id="btn-bar" class="cl r " style="z-index:101;right:5px;">
        <button class="btn btn-info radius r" href="javascript:void(0);" title="快速上手！" onclick="startIntro();"><img src=/_assets/icons/roadsign.png style="width:24px;height:18px;"></button>
		<button class="btn btn-info radius r" href="javascript:void(0);" title="任务统计" onclick="open_task_sum();"><i class="fa fa-info fa-fw"> </i></button>
        <div id="top_btn_bar" class="btn-group r">
            <div class="btn-group" style="display:none;" role="group" aria-label="...">
                <button class="btn btn-primary radius r" id="btn_show_hide_date" role="button" href="###" onclick="show_or_hide_date();" data-action="hide" title="显示/隐藏日期"><i class="fa fa-calendar fa-fw"></i></button>
                <button class="btn btn-primary radius r" id="btn_show_hide_tags" role="button" href="###" onclick="show_or_hide_tags();" data-action="hide" title="显示/隐藏标签"><i class="fa fa-tags fa-fw"> </i></button>
				<button class="btn btn-warning radius r" role="button" href="###" onclick='active_task_sort();' title="设置"><i class="fa fa-list fa-fw"> </i></button>
				<button class="btn btn-warning radius r" role="button" href="###" onclick='call_task_box();' title="任务箱"><i class="fa fa-archive fa-fw"> </i></button>

            </div>
            <button class="btn btn-warning radius r" role="button" href="###" onclick='$(this).siblings(".btn-group").toggle();' title="设置"><i class="fa fa-gear fa-fw"> </i></button>
			 
        </div>

        <div class="btn-group r ">
            <button type="button" class="btn btn-warning" title="查看不同状态的任务">筛选显示</button>
            <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <span class="caret"></span>
	        </button>
            <ul class="dropdown-menu" style="min-width:100px;">
                <li><a href="#" onclick="show_or_hide_stage('all');">全部</a></li>
                <li role="separator" class="divider"></li>
				<li><a href="#" onclick="show_or_hide_stage('urgent_doing');"><i class="fa fa-fw fa-bomb icon-urgent "></i>+<i class="fa fa-fw fa-play-circle icon-doing "></i></a></li>
                <li><a href="#" onclick="show_or_hide_stage('urgent');"><i class="fa fa-fw fa-bomb icon-urgent "></i>迫切</a></li>
                <li><a href="#" onclick="show_or_hide_stage('doing');"><i class="fa fa-fw fa-play-circle icon-doing "></i>在办</a></li>
                <li><a href="#" onclick="show_or_hide_stage('suspend');"><i class="fa fa-fw fa-pause icon-pause "></i>暂停</a></li>
                <li><a href="#" onclick="show_or_hide_stage('farm-out');"><i class="fa fa-fw fa-puzzle-piece icon-hand "></i>委托</a></li>
                <li><a href="#" onclick="show_or_hide_stage('think');"><i class="fa fa-fw fa-lightbulb-o icon-think "></i>思考</a></li>
                <li><a href="#" onclick="show_or_hide_stage('question');"><i class="fa fa-fw fa-question icon-question "></i>疑问</a></li>
                <li><a href="#" onclick="show_or_hide_stage('finish');"><i class="fa fa-fw fa-check icon-finish "></i>完成</a></li>
                <li><a href="#" onclick="show_or_hide_stage('send');"><i class="fa fa-fw fa-paper-plane icon-send "></i>交差</a></li>
                <li><a href="#" onclick="show_or_hide_stage('');"><i class="fa fa-fw fa-circle-thin "></i>无状态</a></li>
                <!--
		<li role="separator" class="divider"></li>	
		<li><a href="#" onclick="show_or_hide_stage('notfinish');"><i class="fa fa-fw icon-nofinish "></i>未完成</a></li>
		<li role="separator" class="divider"></li>	
		<li><a href="#" onclick="show_important_task();"><i class="fa fa-fw icon-nofinish "></i>重要</a></li>
-->             <li role="separator" class="divider"></li>
                <li><a href="#" onclick="show_or_hide_stage('当天');"><i class="fa fa-fw fa-calendar  "></i>当天</a></li>
                <li><a href="#" onclick="show_or_hide_stage('当周');"><i class="fa fa-fw fa-calendar  "></i>当周</a></li>
				<li><a href="#" onclick="show_or_hide_stage('当月');"><i class="fa fa-fw fa-calendar  "></i>当月</a></li>
				<li><a href="#" onclick="show_or_hide_stage('当季');"><i class="fa fa-fw fa-calendar  "></i>当季</a></li>
				<li><a href="#" onclick="show_or_hide_stage('当年');"><i class="fa fa-fw fa-calendar  "></i>当年</a></li>
				<li role="separator" class="divider"></li>
				<input id="input_show_by_tag" class="form-control radius " title="按标签" onkeydown='if(event.keyCode==13){show_in_tree_by_tag();}' type=text>
            </ul>
            <div class="btn-group r ">
            <button type="button" class="btn btn-warning" title="设置拖放的类型">拖放类型设置</button>
            <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <span class="caret"></span>
	        </button>
            <ul class="dropdown-menu" style="right:0;min-width:100px;">
                <li><a href="#" onclick="show_or_hide_stage('doing');"><i class="fa fa-fw fa-square-o"></i><i class="fa fa-fw fa-arrow-right"></i><i class="fa fa-fw fa-square"></i>移动</a></li>
                <li><a href="#" onclick="show_or_hide_stage('doing');"><i class="fa fa-fw fa-share-square"></i><i class="fa fa-fw fa-arrow-right"></i><i class="fa fa-fw fa-square"></i>移动留链</a></li>
                <li><a href="#" onclick="show_or_hide_stage('doing');"><i class="fa fa-fw fa-square"></i><i class="fa fa-fw fa-arrow-right"></i><i class="fa fa-fw fa-share-square"></i>移链</a></li>
                <li><a href="#" onclick="show_or_hide_stage('doing');"><i class="fa fa-fw fa-share-square"></i><i class="fa fa-fw fa-arrows-h"></i><i class="fa fa-fw fa-square"></i>互换</a></li>
            </ul>
        </div>
        <?php echo $loginbar; ?>
   
    </div>

    <div class="logo"><a href="/">&nbsp;<img src="/_assets/img/logo_50_80.png" style="vertical-align:bottom"><span style="color:blue;">think</span><span style="color:red;">todo.cn</span></a>
        <span style="position:relative;top:-50px;border-radius: 6px;    padding: 2px 3px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #81778C;">beta</span>
        <span style="font-size:18px;">想即做 任务清单</span>
        <?php if(isset($view)&&$view=='team'){?>
        <span style="font-size:18px;">(团队版)</span>
        <?php } ?>
    </div>

    <div id="content_area" style="float:left;width:100%;" ondragover="dragover_content_area(event);" ondrop="drop_on_content_area(event);">
<!--页面主内容区开始 -->
        <div id="simple_container" class="view_container" data-visible="show">
            <header><i class="fa fa-plus fa-2x fa-fw" onclick="view_show_hide('simple');" title="快捷增加任务"></i></header>
            <div id="simple_view" class="view_content">

                <div id="simple_task_add_area" class="cl  text-right" style="height:34px; margin:5px;">
                    <div class="form-inline form-horizontal">
                        <input id="input_simple_task_add" class="form-control radius  col-xs-8" onkeydown='if(event.keyCode==13){simple_task_add();}' type=text>
                        <button class="btn btn-primary col-xs-2" onclick="simple_task_add()">新增</button>
                        <button class="btn col-xs-2" onclick="javascript:$('#input_simple_task_add').val('');">清除</button>
                    </div>
                </div>

                <div data-taskid="2" class="task area" id="902" data-nodetype="T" >
                    <a class="expend_fold" href="###" title="展开"><i class="fa fa-folder-o"></i></a>
                    <span class="task_title task_for_drag ">不分类任务</span>
                    <a class="icon_button btn_for_toolbar" href="###" title="操作面板2"><i class="fa fa-lg fa-angle-double-right"></i></a>
                </div>

                <div data-taskid="4" class="task " id="904" data-nodetype="T" style="display:none;">
                    <a class="expend_fold" href="###" title="展开"><i class="fa fa-folder-o"></i></a>
                    <span class="task_title task_for_drag ">任务挂装区</span>
                    <a class="icon_button btn_for_toolbar" href="###" title="操作面板4"><i class="fa fa-lg fa-angle-double-right"></i></a>
                </div>
            </div>
			<div class="task" id="drag_seat" style="border:1px dashed;display:none; ">将拖放到这里</div>

        </div>
        
        <div id="alltask_container" class="view_container" data-visible="hide">
            <header><i class="fa fa-sitemap fa-rotate-270 fa-2x fa-fw" onclick="view_show_hide('alltask');" title="分类任务"></i>
                <a class="icon_button view_float_button" ><i class="fa fa-thumb-tack" ></i></a>
				<a class="icon_button view_float_button" onclick="call_task_box();"><i class="fa fa-archive" ></i></a>
            </header>
            <div id="alltask_view" class="view_content area">
                <div style="height:0.1px;"></div>
                <div id="parents_path"></div>
                <div data-taskid="1" class="task " id="901" data-nodetype="T" data-haschild="1"  >
                    <a class="expend_fold" href="###" title="展开"><i class="fa fa-folder-o"></i></a>
                    <span class="task_title task_for_drag ">所有分类任务</span>
                    <a class="icon_button btn_for_toolbar" href="###" title="操作面板1"><i class="fa fa-lg fa-angle-double-right"></i></a>
                    <span class="task_comment radius"><span><i class="fa fa-check btn" onclick="change_comment(event);"></i>
        			<i class="fa fa-remove btn " onclick="close_comment(event);"></i></span><textarea></textarea></span>
                </div>
                
            </div>
        </div>
		
		<div id="recent_container" class="view_container" data-visible="hide">
            <header><i class="fa  fa-toggle-right fa-2x fa-fw" onclick="view_show_hide('recent');" title="当前任务区"></i>
			<a class="icon_button view_float_button" ><i class="fa fa-thumb-tack" ></i></a>
			</header>
            <div id="recent_view" class="view_content">
				<button class="btn btn-primary " style="float:right;" onclick="clear_recent_view();">归位</button>
                <div data-taskid="9" class="task area " id="909" data-nodetype="E" data-areaType="recent">
                    <span class="task_title task_for_drag ">当前任务</span>
                </div>
            </div>
        </div>

        <div id="calendar_container" class="view_container" data-visible="hide">
            <header><i class="fa fa-calendar fa-2x fa-fw" onclick="view_show_hide('calendar');" title="日历视图"></i>
                <a class="icon_button view_float_button" ><i class="fa fa-thumb-tack" ></i></a>
            </header>
            <div id='calendar_view' class="view_content area">

            </div>
        </div>

        <div id="search_container" class="view_container" data-visible="hide">
            <header><i class="fa fa-search fa-2x fa-fw" onclick="view_show_hide('search');" title="搜索"></i>
                <a class="icon_button view_float_button" ><i class="fa fa-thumb-tack" ></i></a>
            </header>
            <div id="search_view" class="view_content area">
                <div id="task_search_area" class="cl">
                    <div class="form-inline">
                        <input id="input_task_search" class="form-control radius " onkeydown='if(event.keyCode==13){task_search();}' type=text>
                        <button class="btn btn-primary " onclick="task_search()">搜索</button>
                        <button class="btn " onclick="clear_search()">清除</button>
                        <button class="btn " onclick="save_search_words()">保存</button>
                    </div>
                </div>
                <div id="saved_search_words_area">
                    <i id="btn_saved_search_words_area" class="fa fa-2x fa-star " onclick="show_save_search()" style="float:right;margin:3px;" title="保存的搜索"></i>
                    <div id="saved_search_words" style="display:none;">
                    </div>
                </div>
                <div  id="btn_expend_all_searched_task" style="display:none;">				
				    <i  class="fa fa-2x fa-asterisk " onclick="expend_all_searched_task()" style="float:right;margin:3px;" title="展开所有结果节点"></i>
                </div>
            </div>
        </div>
<!--任务集视图，想想没太必要，任务集应该放到正常任务中去，用链接的方式 
        <div id="taskset_container" class="view_container" data-visible="hide">
            <header><i class="fa fa-star fa-2x fa-fw" onclick="view_show_hide('taskset');" title="任务集"></i>
                <a class="icon_button view_float_button" ><i class="fa fa-thumb-tack" ></i></a>
            </header>
            <div id="taskset_view" class="view_content area">
                <div data-taskid="5" class="task  " id="905" data-nodetype="R" data-haschild="1" >
                    <a class="expend_fold" href="###" title="展开"><i class="fa fa-folder-o"></i></a>
                    <span class="task_title task_for_drag ">星标任务集</span>
                    <a class="icon_button btn_for_toolbar" href="###" title="操作面板5"><i class="fa fa-lg fa-angle-double-right"></i></a>
                    <span class="task_comment radius"><span><i class="fa fa-check btn" onclick="change_comment(event);"></i>
                    <i class="fa fa-remove btn " onclick="close_comment(event);"></i></span><textarea></textarea></span>
                </div>
            </div>
        </div> -->
<!--
		<div id="shortcut_container" class="view_container" data-visible="hide">
            <header><i class="fa fa-rocket fa-2x fa-fw" onclick="view_show_hide('shortcut');" title="任务集"></i>
                <a class="icon_button view_float_button" ><i class="fa fa-thumb-tack" ></i></a>
            </header>
            <div id="shortcut_view" class="view_content area">
				<div>
					<div class="shortcut" title="快速归档总队琐事"><img  src="/_assets/icons/spool.svg" ><br><span>快速归档总队琐事</span></div>
				</div>

            </div>
        </div>
-->	
        <?php if(isset($view)&&$view=='team'){?>
        <div id="member_container" class="view_container" data-visible="hide">
            <header><i class="fa fa-group fa-2x fa-fw" onclick="view_show_hide('member');" title="团队视图"></i></header>
            <div id='member_view' class="view_content area">

                <div id="team_area">
                    <h3>团队成员</h3>
                    <ul id="team_member_list">
                        <li v-for="item in items">
                            <span><img v-bind:src="item.ProfilePhoto" style="width:32px;height:32px;"></span><span>  {{ item.username }} <A v-bind:href="'/team/'+item.id" target=_BLANK>&gt;&gt;</A></span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <?php }else{ ?>
        <div id="team_container" class="view_container" data-visible="hide">
            <header><i class="fa fa-group fa-2x fa-fw" onclick="view_show_hide('team');" title="团队视图"></i></header>
            <div id='team_view' class="view_content area">
                <div id="teamlist_area">
                    <h3>我参与的团队</h3>
                    <ul id="teamlist">
                        <li v-for="item in items">
                            <span><i class="fa fa-group "> </i> <A v-bind:href="'/team/'+item.id" target=_BLANK>{{ item.teamname }}</A></span>
                        </li>
                    </ul>
                </div>

                <div id="team_add_area" class="cl  text-right" style="height:34px; margin:5px;">
                    <div class="form-inline form-horizontal">
                        <input id="input_team_add" class="radius  col-xs-9 form-control " style="width:75%" onkeydown='if(event.keyCode==13){team_add();}' type=text>
                        <button class="btn btn-primary col-xs-2" onclick="team_add()">创建团队</button>
                    </div>
                </div>
            </div>
        </div>
        <?php } ?>
        <div id="history_container" class="view_container" data-visible="hide">
            <header><i class="fa fa-list fa-2x fa-fw" onclick="view_show_hide('history');" title="历史视图"></i></header>
            <div id='history_view' class="view_content area"></div>
        </div>

<!--		
		<div id="shadow_container" class="view_container" data-visible="hide">
            <header><i class="fa fa-copy fa-2x fa-fw" onclick="view_show_hide('shadow');" title="影子视图"></i>
			<a class="icon_button view_float_button" ><i class="fa fa-thumb-tack" ></i></a>
			</header>
            <div id='shadow_view' class="view_content area">
				 <div data-taskid="7" class="task " id="907" data-nodetype="T" data-haschild="1"  >
                    <a class="expend_fold" href="###" title="展开"><i class="fa fa-folder-o"></i></a>
                    <span class="task_title task_for_drag ">副本任务</span>
                    <a class="icon_button btn_for_toolbar" href="###" title="操作面板1"><i class="fa fa-lg fa-angle-double-right"></i></a>
                    <span class="task_comment radius"><span><i class="fa fa-check btn" onclick="change_comment(event);"></i>
        			<i class="fa fa-remove btn " onclick="close_comment(event);"></i></span><textarea></textarea></span>
                </div></div>
        </div>
-->
        <div id="help_container" class="view_container" data-visible="hide">
            <header><i class="fa fa-question fa-2x fa-fw" onclick="view_show_hide('help');" title="帮助"></i></header>
            <div id="help_view" class="view_content">
                <div data-taskid="231" class="task   area" id="help" data-nodetype="R">
                    <a class="expend_fold" href="###" title="展开"><i class="fa fa-folder-o"></i></a>
                    <span class="task_title task_for_drag ">如何使用thinktodo任务清单</span>
                    <a class="icon_button btn_for_toolbar" href="###" title="操作面板231"><i class="fa fa-lg fa-angle-double-right"></i></a>
                </div>
                <div data-taskid="9" class="task  area" id="advice" data-nodetype="R">
                    <a class="expend_fold" href="###" title="展开"><i class="fa fa-folder-o"></i></a>
                    <span class="task_title task_for_drag ">给thinktodo提建议</span>
                    <a class="icon_button btn_for_toolbar" href="###" title="操作面板5"><i class="fa fa-lg fa-angle-double-right"></i></a>
                </div>
            </div>
        </div>

    </div>
    <!--页面主内容区结束 -->
	
    <!--浮动按扭-->
    <div id="right_float_bar" class="radius " style="">		
        <div class="btn-group r">
            <button class="btn btn-warning radius r" role="button" href="###" onclick='$(this).siblings(".btn-group").toggle();' title="设置"><i class="fa fa-angle-double-down fa-fw"> </i></button>			
            <div class="btn-group" style="display:none;" role="group" aria-label="...">
                <button class="btn btn-primary radius r" id="btn_show_hide_date" role="button" href="###" onclick="show_or_hide_date();" data-action="hide" title="显示/隐藏日期"><i class="fa fa-calendar fa-fw"></i></button>
                <button class="btn btn-primary radius r" id="btn_show_hide_tags" role="button" href="###" onclick="show_or_hide_tags();" data-action="hide" title="显示/隐藏标签"><i class="fa fa-tags fa-fw"> </i></button>
				<button class="btn  radius r" id="btn_toggle_drag_mode" role="button" href="###" onclick='toggle_drag_mode();' title="拖放还是复制"><i class="fa fa-copy fa-fw"> </i></button>
                
				<button class="btn btn-warning radius r btn-switch" data-switch="1" role="button" href="###" onclick='call_task_box_float();' title="任务箱"><i class="fa fa-archive fa-fw"> </i></button>
				<button class="btn radius r" role="button" href="###" onclick=';' title="回到顶部"><i class="fa fa-angle-double-up fa-fw"> </i></button>
            </div>	 
        </div>
	</div>
	
	
    <!--工具栏-->
    <div id="task_toolbar" class="radius " style="display:none;">
        <i id="close_toolbar" class="fa fa-fw fa-remove btn  for_task for_search for_root for_title" style="float:right;" onclick="hide_toolbar()" title="关闭"></i>

        <i class="fa fa-fw fa-sort-up     btn btn-default radius for_task notfor_area_909" onclick="upDown('up')" data-node="general" title="上移"></i>
        <i class="fa fa-fw fa-step-forward   fa-rotate-270   btn btn-default radius for_task for_simple_view_2 for_902" onclick="upDown('uptop')" data-node="general" title="到顶"></i>
        <i class="fa fa-fw fa-sort-down   btn radius btn-default for_task notfor_area_909" onclick="upDown('down')" data-node="general" title="下移"></i>
		<i class="fa fa-fw fa-sort-up     btn btn-default radius for_area_909" onclick="upDown_in_taskset('up')" data-node="general" title="上移优先"></i>
        <i class="fa fa-fw fa-sort-down   btn radius btn-default for_area_909" onclick="upDown_in_taskset('down')" data-node="general" title="下移优先"></i>
		<i class="fa fa-fw fa-square-o    btn radius btn-default for_area_909" onclick="clear_recent()" data-node="general" title="非当前"></i>
        <i class="fa fa-fw fa-crosshairs  btn radius btn-default for_search for_search_view for_history_view" data-node="" onclick="position_task_id()" title="定位"></i>
        <i class="fa fa-fw fa-eye-slash   btn radius btn-default for_simple_view_2 for_902" onclick="task_archive_to(3)" title="不关注"></i>
        <i class="fa fa-fw fa-eye         btn radius btn-default for_simple_view_3 for_903" onclick="task_archive_to(2)" title="恢复关注"></i>
        <i class="fa fa-fw fa-archive     btn radius btn-default for_task" data-node="general" onclick="task_archive()" title="归档/恢复"></i>
        <i class="fa fa-fw fa-bullhorn    btn radius btn-default for_task" data-node="general" onclick="pub2()" title="发布"></i>		
        <i class="fa fa-fw fa-toggle-right    btn radius btn-default for_task" data-node="general" onclick="play()" title="演示"></i>
        <i class="fa fa-fw fa-sliders    btn radius btn-default for_task" data-node="general" onclick="show_gante_bar()" title="进度计划"></i>
        <i class="fa fa-fw fa-trash       btn radius btn-default for_task" data-node="general" onclick="del_myself()" title="删除任务"></i>
        <br>
        <i class="fa fa-fw fa-plus        btn radius btn-default for_task for_node_title for_area_advice" data-node="general" onclick="call_add_child_input()" title="增加子任务"></i>

        <i class="fa fa-fw fa-edit        btn radius btn-default for_task" data-node="general" onclick="task_text_edit('title')" title="修改任务"></i>
        <i class="fa fa-fw fa-tags        btn radius btn-default for_task" data-node="general" onclick="task_text_edit('tags')" title="标签"></i>
        <i class="fa fa-fw fa-gears       btn radius btn-default for_task" data-node="general" onclick="task_text_edit('intags')" title="样式标签"></i>
        <i class="fa fa-fw fa-link        btn radius btn-default for_task" data-node="general" onclick="task_text_edit('link')" title="链接"></i>
        <i class="fa fa-fw fa-share-square btn radius btn-default for_task" data-node="general" onclick="task_text_edit('internal_link')" title="内链"></i>
        <i class="fa fa-fw fa-comment     btn radius btn-default for_task " data-node="general" onclick="show_task_comment()" title="备注"></i>
        <i class="fa fa-fw fa-photo       btn radius btn-default for_task " data-node="general" onclick="task_text_edit('photo')" title="图片"></i>
						<i class="fa fa-fw fa-list  btn radius btn-default      for_task " data-node="general" title="大纲" onclick="change_stage('directory')"> </i>

        <br>
        <!--
<i class="fa fa-fw fa-refresh     btn radius btn-default for_task for_root for_title" data-node="" onclick="refresh_dom_child()" title="刷新" ></i>
<div id="text_edit_div" style="display:none;" data-action="title">
<input id="input_text_edit" class="input-text radius" type=text onkeydown='if(event.keyCode==13){edit_task_text_ok();}' value="">
<a class="btn btn-default" herf="###" onclick="edit_task_text_ok();"><i class="fa fa-check-circle-o"></i></a>
<a class="btn btn-default" herf="###" onclick="edit_task_text_cancel();"><i class="fa fa-times-circle-o"></i></a>
</div>


-->
        <div class="form-inline" id="text_edit_div" style="display:none;" data-action="title">
            <!--
用了bootstrap后，是否不用再写回车代码了，不然会提交两次
<input id="input_simple_task_add" class="form-control radius  "  onkeydown='if(event.keyCode==13){simple_task_add();}'  type=text>
-->
            <input id="input_text_edit" class="form-control radius" type=text onkeydown='if(event.keyCode==13){edit_task_text_ok();}' value="">

            <button class="btn btn-primary " onclick="edit_task_text_ok();"><i class="fa fa-check-circle-o"></i></button>
            <button class="btn " onclick="edit_task_text_cancel();"><i class="fa fa-times-circle-o"></i></button>
        </div>


        <i class="fa fa-fw fa-square icon-blank btn radius btn-default       for_task " data-node="general" title="无状态" onclick="change_stage('')"> </i>
        <i class="fa fa-fw fa-question icon-question btn radius btn-default  for_task " data-node="general" title="疑问" onclick="change_stage('question')"> </i>
        <i class="fa fa-fw fa-lightbulb-o icon-think btn radius btn-default  for_task " data-node="general" title="思路" onclick="change_stage('think')"> </i>

        <i class="fa fa-fw fa-play-circle icon-doing btn radius btn-default  for_task  " data-node="general" title="活动" onclick="change_stage('doing')"> </i>
        <i class="fa fa-fw fa-bomb icon-urgent btn radius btn-default        for_task " data-node="general" title="迫切" onclick="change_stage('urgent')"> </i>
        <i class="fa fa-fw fa-puzzle-piece icon-hand btn radius btn-default  for_task " data-node="general" title="协作" onclick="change_stage('farm-out')"> </i>
        <i class="fa fa-fw fa-pause icon-pause btn radius btn-default        for_task " data-node="general" title="挂起" onclick="change_stage('suspend')"> </i>
        <i class="fa fa-fw fa-paper-plane icon-send btn radius btn-default   for_task " data-node="general" title="交差" onclick="change_stage('send')"> </i>
        <i class="fa fa-fw fa-check icon-finish btn radius btn-default       for_task " data-node="general" title="完成" onclick="change_stage('finish')"> </i>
        <i class="fa fa-fw fa-remove icon-giveup btn radius btn-default      for_task " data-node="general" title="放弃" onclick="change_stage('giveup')"> </i>
        <i class="fa fa-fw fa-star  btn radius btn-default      for_task  hidden" data-node="general" title="星标" onclick="change_stage('star')"> </i>
    </div>

    <div id="task_photo_show" class="radius " style="display:none;position:absolute;z-index:5;"><img></div>
	<div id="leftlist_border" style="display:none;position:absolute;left:10px;background-color:white;"></div>
    <footer>
        <div class="footer">
            <ul style="float:right;">
                <li><a href="###" onclick="open_intro();">我们这样理解任务</a></li>
                <li><a href=/index.php/article/get/962 target="_blank">更新日志</a></li>
                <li>(请使用chrome或IE10以上浏览器)</li>
                <li><a href="/cate/" target="_blank">分类模式（测试）</a></li>
                <li><a href="/index.php/home/w/1" target="_blank">多工作区模式（测试）</a></li>
                <li><a href="http://test.thinktodo.cn" target="_blank">测试版本</a></li>
            </ul>
        </div>
    </footer>

    <div id="temp" style="display:none;"></div>
    <div id="parm" style="display:none" 
        data-rootTaskId = "<?php echo $rootTaskId;?>" 
        data-workarea="" <?php (isset($view)&&$view=='team' )? 'data-teamid = '.$teamId: '' ?>
        ></div>

    <script type="text/javascript" src="/libs/moment.min.js"></script>
    <script src="/libs/mousetrap.min.js"></script>
    <script type="text/javascript" src="/libs/jquery.scrollTo-2.1.2/jquery.scrollTo.js"></script>
    <script src="/_assets/js/app/for_save_search.js"></script>
    <script src="/_assets/js/app/keep_alive.js"></script>
    <script src="/_assets/js/app/task_search.js"></script>
    <script src="/_assets/js/app/mycalendar.js"></script>
    <script src="/_assets/js/app/mycalendar_drag.js"></script>
    <script src="/_assets/js/app/expend_fold2.js"></script>
    <script src="/_assets/js/app/toolbar2.js"></script>
    <script src="/_assets/js/app/taskset.js"></script>
    <script src="/_assets/js/app/task_drag4.js"></script>
    <script src="/_assets/js/app/keyboard.js"></script>
    <script src="/_assets/js/app/viewshow.js"></script>
    <script src="/_assets/js/app/createtask.js"></script>
    <script src="/_assets/js/app/loadtask4home295.js"></script>
    <script src="/_assets/js/app/task_dom_opt.js"></script>
	<script src="/_assets/js/app/recent.js"></script>
    <script src="/_assets/js/app/history_task.js"></script>
    <script src="/_assets/js/app/team_task.js"></script>
    <script src="/libs/rangeslider.js-2.3.0/ion.rangeSlider.js"></script>
    <script src="/_assets/js/app/gante.js"></script>
    <script src="/_assets/js/app/cancel2.js"></script>
    <script type="text/javascript" src="/libs/introjs/intro.js"></script>
    <script src="/_assets/js/app/intro_help.js"></script>
</body>

</html>